package com.wjb.springcloud.pojo;

import com.wjb.config.FeignConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@org.springframework.cloud.netflix.feign.FeignClient(name = "user-service",configuration= FeignConfiguration.class)
public interface FeignClient {
    @RequestMapping(method = RequestMethod.GET,value = "/simple/{id}")
    Student findByid(@PathVariable(value = "id") Integer id);
}
